home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / etc / acpi / suspend.d / 90-framebuffer-stop.sh < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  2009-03-27  |  231 b   |  15 lines

  1. #!/bin/sh
  2.  
  3. # Make sure the backlight goes off
  4. if [ x$USE_DPMS = "xtrue" ]; then
  5.   vbetool dpms off
  6. fi
  7.  
  8. # SHUT UP FRAMEBUFFER
  9. for x in /sys/class/graphics/*; do
  10.     if [ -f $x/state ]; then
  11.         echo -n 1 >$x/state;
  12.     fi
  13. done
  14.  
  15.